import assessCheckApi from './api'
import { axios } from '@/utils/request'
import router from '@/router/index'
import blobType from '@/common/blobType'

// 公告-分页查询
export function queryPageNotice(data) {
    return axios({
        url: assessCheckApi.queryPageNotice,
        method:'get' ,
        params:data,
        url_1:'outside'
    })
}
// 有效公告-分页查询
export function queryPageYxNotice(data) {
    return axios({
        url: assessCheckApi.queryPageYxNotice,
        method:'get' ,
        params:data,
        url_1:'outside'
    })
}
// 查看公告
export function queryById(data) {
    return axios({
        url: assessCheckApi.queryById,
        method:'get' ,
        params:data,
        url_1:'outside'
    })
}
// 添加公告
export function addNotice(data){
    return axios({
        url: assessCheckApi.addNotice,
        method:'post',
        data:{...data},
        url_1:'outside',
    })
}
// 批量删除公告
export function deleteNotice(data){
    return axios({
        url: assessCheckApi.deleteNotice,
        method:'post',
        data:{...data},
        url_1:'outside',
    })
}
// 更新公告
export function updateNotice(data){
    return axios({
        url: assessCheckApi.updateNotice,
        method:'put' ,
        data:{...data},
        url_1:'outside',
    })
}
